package day05;

public class ForDemo {
    public static void main(String[] args) {
        for (int i = 1;i<=9;i++){
            if (i==7){
                break;
            }
            System.out.println(i+"*6="+i*6);
        }


















        /*
        //累加1+2+3+4.....+99+100=?/*
        int sum = 0;
        for (int num = 1;num <= 100;num++){
            sum = sum + num;
        }
        System.out.println("结果为"+sum);

                 sum = 0
        num = 1  sum =0+1
        num = 2  sum =0+1+2
        num = 3  sum =0+1+2+3
        num = 4  sum =0+1+2+3+4
        num = 5  sum =0+1+2+3+4+5
        num = ...sum =0+1+2+3+4+5+...
        num =99  sum =0+1+2+3+4+5+...+99
        num =100 sum =0+1+2+3+4+5+...+100
        num =101 false for循环结束
        输出 结果为+sum
         */
    }
}
